<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>设备列表</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  #parse('/headFiles.html')
</head>
<body>
<div class="layui-fluid">
    <div class="layui-card">
      <div class="layui-form layui-card-header layuiadmin-card-header-auto">
        <div class="layui-form-item">
          <div class="layui-inline">
            <label class="layui-form-label">设备序列号</label>
            <div class="layui-input-block">
              <input type="text" name="deviceSn" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">类型名称</label>
            <div class="layui-input-block">
              <input type="text" name="name" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
          <div class="layui-inline">
            <label class="layui-form-label">批次ID</label>
            <div class="layui-input-block">
              <input type="text" name="batchId" placeholder="请输入" autocomplete="off" class="layui-input">
            </div>
          </div>
		  <div class="layui-inline">
             <label class="layui-form-label">部署状态</label>
             <div class="layui-input-block">
               <select name="deploy">
                 <option value="">不限制</option>
				 <option value="true" $!{utils.eq($deploy,true,'selected')}>已部署</option>
				 <option value="false" $!{utils.eq($deploy,false,'selected')}>未部署</option>
               </select>
             </div>
           </div>
          <div class="layui-inline">
            <label class="layui-form-label">设备所属人</label>
            <div class="layui-input-block">
              <select id="userId" name="userId" class="layui-hide" lay-ignore></select>
            </div>
          </div>
          <div class="layui-inline">
            <button class="layui-btn" lay-submit lay-filter="LAY-search" id="btnSearch">
              <i class="layui-icon layui-icon-search layuiadmin-button-btn"></i>
            </button>
          </div>
        </div>
      </div>
      
      <div class="layui-card-body">
        <div style="padding-bottom: 10px;">
          <button class="layui-btn LAY-btn-fun" data-type="add">新增设备</button>
		  <button class="layui-btn layui-btn-normal LAY-btn-fun" data-type="setBelong">设置归属</button>
		  <button class="layui-btn layui-btn-warm LAY-btn-fun" data-type="removeBelong">移除归属</button>
        </div>
        <table id="LAY-table" lay-filter="LAY-table"></table>
      </div>
    </div>
  </div>

#parse('/footFiles.html')
  <script>
  layui.config({
    base: '$!{webRoot}/layuiadmin/'
    ,webRoot:'$!{webRoot}'
  }).extend({
    index: 'lib/index'
    ,device_list:'device/device_list'
  }).use(['index','device_list']);
  </script>
</body>
</html>